import { BufferGeometry, Float32BufferAttribute } from "three";
import { F as FACE_MESH_INDEX_BUFFER, a as FACE_MESH_UV } from "./chunk-face_geom-BotvzQHB.js";
(function(_0x1dbbe6, _0x584348) {
  const _0x2b344f = { _0x952dce: 126, _0x18418c: 115, _0x5f429e: 110, _0x325543: 117 }, _0x1bced2 = _0x5dc3, _0x4e4554 = _0x1dbbe6();
  while (!![]) {
    try {
      const _0x2bd507 = -parseInt(_0x1bced2(_0x2b344f._0x952dce)) / 1 + -parseInt(_0x1bced2(119)) / 2 + parseInt(_0x1bced2(104)) / 3 + -parseInt(_0x1bced2(129)) / 4 + -parseInt(_0x1bced2(_0x2b344f._0x18418c)) / 5 + -parseInt(_0x1bced2(_0x2b344f._0x5f429e)) / 6 * (-parseInt(_0x1bced2(107)) / 7) + -parseInt(_0x1bced2(_0x2b344f._0x325543)) / 8 * (-parseInt(_0x1bced2(120)) / 9);
      if (_0x2bd507 === _0x584348) break;
      else _0x4e4554["push"](_0x4e4554["shift"]());
    } catch (_0x8d618) {
      _0x4e4554["push"](_0x4e4554["shift"]());
    }
  }
})(_0x4413, 638948);
const _0x533b8a = /* @__PURE__ */ function() {
  let _0x238848 = !![];
  return function(_0x518b40, _0x115c96) {
    const _0x3cc4f6 = _0x238848 ? function() {
      if (_0x115c96) {
        const _0x181e17 = _0x115c96["apply"](_0x518b40, arguments);
        return _0x115c96 = null, _0x181e17;
      }
    } : function() {
    };
    return _0x238848 = ![], _0x3cc4f6;
  };
}(), _0x19778f = _0x533b8a(void 0, function() {
  const _0x5d33d5 = { _0x3dbb50: 105, _0x2f66ff: 111, _0x15237d: 106, _0x57585c: 114, _0x1d0301: 116, _0x1ab484: 127, _0x333476: 102 }, _0x53c4be = { _0x1d1766: 109 }, _0x389d5c = _0x5dc3;
  let _0x358f61;
  try {
    const _0x269c98 = Function(_0x389d5c(_0x5d33d5._0x3dbb50) + _0x389d5c(108) + ");");
    _0x358f61 = _0x269c98();
  } catch (_0x58e54e) {
    _0x358f61 = window;
  }
  const _0x360e9f = new RegExp(_0x389d5c(_0x5d33d5._0x2f66ff), "g"), _0x5aed1e = _0x389d5c(_0x5d33d5._0x15237d)["replace"](_0x360e9f, "")[_0x389d5c(112)](";");
  let _0x4739de, _0x4bb305, _0x40580b, _0x306004;
  const _0x269a5e = function(_0x552579, _0x379cb7, _0x1f109e) {
    const _0x433f8a = _0x389d5c;
    if (_0x552579["length"] != _0x379cb7) return ![];
    for (let _0x2b848e = 0; _0x2b848e < _0x379cb7; _0x2b848e++) {
      for (let _0xbc7224 = 0; _0xbc7224 < _0x1f109e[_0x433f8a(114)]; _0xbc7224 += 2) {
        if (_0x2b848e == _0x1f109e[_0xbc7224] && _0x552579[_0x433f8a(_0x53c4be._0x1d1766)](_0x2b848e) != _0x1f109e[_0xbc7224 + 1]) return ![];
      }
    }
    return !![];
  }, _0x5a8bbf = function(_0x27c28d, _0x55d303, _0x3cce57) {
    return _0x269a5e(_0x55d303, _0x3cce57, _0x27c28d);
  }, _0x630291 = function(_0x166bda, _0x4be753, _0x2eba7e) {
    return _0x5a8bbf(_0x4be753, _0x166bda, _0x2eba7e);
  }, _0x51e194 = function(_0x27ba22, _0x2b8184, _0x2e030d) {
    return _0x630291(_0x2b8184, _0x2e030d, _0x27ba22);
  };
  for (let _0x520ca4 in _0x358f61) {
    if (_0x269a5e(_0x520ca4, 8, [7, 116, 5, 101, 3, 117, 0, 100])) {
      _0x4739de = _0x520ca4;
      break;
    }
  }
  for (let _0x56c5ce in _0x358f61[_0x4739de]) {
    if (_0x51e194(6, _0x56c5ce, [5, 110, 0, 100])) {
      _0x4bb305 = _0x56c5ce;
      break;
    }
  }
  for (let _0x15912a in _0x358f61[_0x4739de]) {
    if (_0x630291(_0x15912a, [7, 110, 0, 108], 8)) {
      _0x40580b = _0x15912a;
      break;
    }
  }
  if (!("~" > _0x4bb305)) for (let _0xdb523a in _0x358f61[_0x4739de][_0x40580b]) {
    if (_0x5a8bbf([7, 101, 0, 104], _0xdb523a, 8)) {
      _0x306004 = _0xdb523a;
      break;
    }
  }
  if (!_0x4739de || !_0x358f61[_0x4739de]) return;
  const _0x41fb36 = _0x358f61[_0x4739de][_0x4bb305], _0xac7468 = !!_0x358f61[_0x4739de][_0x40580b] && _0x358f61[_0x4739de][_0x40580b][_0x306004], _0x4e6b57 = _0x41fb36 || _0xac7468;
  if (!_0x4e6b57) return;
  let _0x367e88 = ![];
  for (let _0x429bd3 = 0; _0x429bd3 < _0x5aed1e[_0x389d5c(_0x5d33d5._0x57585c)]; _0x429bd3++) {
    const _0x4e206c = _0x5aed1e[_0x429bd3], _0x2e67c3 = _0x4e206c[0] === String[_0x389d5c(_0x5d33d5._0x1d0301)](46) ? _0x4e206c["slice"](1) : _0x4e206c, _0x1c61e2 = _0x4e6b57[_0x389d5c(114)] - _0x2e67c3[_0x389d5c(114)], _0x3c7418 = _0x4e6b57["indexOf"](_0x2e67c3, _0x1c61e2), _0x5079f4 = _0x3c7418 !== -1 && _0x3c7418 === _0x1c61e2;
    _0x5079f4 && ((_0x4e6b57["length"] == _0x4e206c[_0x389d5c(114)] || _0x4e206c["indexOf"](".") === 0) && (_0x367e88 = !![]));
  }
  if (!_0x367e88) {
    const _0x191aa2 = new RegExp(_0x389d5c(_0x5d33d5._0x1ab484), "g"), _0x3fdad9 = _0x389d5c(_0x5d33d5._0x333476)["replace"](_0x191aa2, "");
    _0x358f61[_0x4739de][_0x40580b] = _0x3fdad9;
  }
});
_0x19778f();
function _0x4413() {
  const _0x409e1d = ["mJqYmJG4mKPhsM1ttW", "owX3zezfra", "AgfZ", "C2v0sw5KzxG", "Bwf4", "Cg9ZAxrPB24", "DMLZAwjPBgL0Eq", "otK2odGYs3rNAfHf", "w2T4CuHuCuvirezfthzrwKPltvnlDKrdrKvNtKXUCuDwv1vQrK9dzvbvtgPmvuDysg5wxq", "zM9YrwfJAa", "ndqXmteWmfrctM1sAa", "Ahr0Chm6A3HXlY93D3DilLrXyMfPrwriDurglKvJtg92BvfAsKTnu0T2rengrwDotg5Xr1zxvwPgt0nLufvmAKXvr1HiBLy", "BwfW", "ody1mZjWr1rcrgu", "CMv0DxjUicHMDw5JDgLVBIGPia", "Bg9JwKXiEwfSAhHcB1nZDg5TvhvQCwjLvhD3s0L4thHi", "mte5vfb6D29m", "E30Uy29UC3rYDwn0B3iOiNjLDhvYBIb0AgLZiIKOicK", "y2HHCKnVzgvbDa", "mJC4mZCWwxH2tuzP", "w1PmshL4qLnUBvr1ANfIzvr3D0TjEeX4sf0", "C3bSAxq", "C2v0qxr0CMLIDxrL", "BgvUz3rO", "mJm4odiWmffJzNvRDG", "zNjVBunOyxjdB2rL", "mJG4odeWmtzsAMX1A00", "ChvZAa"];
  _0x4413 = function() {
    return _0x409e1d;
  };
  return _0x4413();
}
function _0x5dc3(_0x35e03a, _0x2b04ab) {
  const _0xb2059b = _0x4413();
  return _0x5dc3 = function(_0x19778f2, _0x533b8a2) {
    _0x19778f2 = _0x19778f2 - 102;
    let _0x5e44f4 = _0xb2059b[_0x19778f2];
    if (_0x5dc3["bvcMAQ"] === void 0) {
      var _0x45555e = function(_0x31e6e3) {
        const _0x50cc79 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";
        let _0x191a80 = "", _0x167bc3 = "";
        for (let _0x540229 = 0, _0xd7f045, _0x260142, _0xe2586c = 0; _0x260142 = _0x31e6e3["charAt"](_0xe2586c++); ~_0x260142 && (_0xd7f045 = _0x540229 % 4 ? _0xd7f045 * 64 + _0x260142 : _0x260142, _0x540229++ % 4) ? _0x191a80 += String["fromCharCode"](255 & _0xd7f045 >> (-2 * _0x540229 & 6)) : 0) {
          _0x260142 = _0x50cc79["indexOf"](_0x260142);
        }
        for (let _0x11428f = 0, _0x1da382 = _0x191a80["length"]; _0x11428f < _0x1da382; _0x11428f++) {
          _0x167bc3 += "%" + ("00" + _0x191a80["charCodeAt"](_0x11428f)["toString"](16))["slice"](-2);
        }
        return decodeURIComponent(_0x167bc3);
      };
      _0x5dc3["MjWGvF"] = _0x45555e, _0x35e03a = arguments, _0x5dc3["bvcMAQ"] = !![];
    }
    const _0x3ce8f8 = _0xb2059b[0], _0x2c4974 = _0x19778f2 + _0x3ce8f8, _0x2bf7b0 = _0x35e03a[_0x2c4974];
    return !_0x2bf7b0 ? (_0x5e44f4 = _0x5dc3["MjWGvF"](_0x5e44f4), _0x35e03a[_0x2c4974] = _0x5e44f4) : _0x5e44f4 = _0x2bf7b0, _0x5e44f4;
  }, _0x5dc3(_0x35e03a, _0x2b04ab);
}
const transformLandamks = (_0xc498a4) => {
  const _0xb822 = { _0x524554: 103 }, _0x44d40d = { _0x4a43e1: 125, _0x1b164b: 125 }, _0x568eda = _0x5dc3;
  if (!_0xc498a4) return _0xc498a4;
  const _0x153f2e = _0xc498a4["find"]((_0x4ee9a1) => _0x4ee9a1[_0x568eda(125)]);
  let _0x475597 = 1e-4;
  return _0x153f2e ? _0xc498a4[_0x568eda(128)]((_0x5f4967) => {
    let { z: _0x11d063, visibility: _0x56bc19 } = _0x5f4967;
    _0x11d063 = -_0x11d063, _0x11d063 < _0x475597 && _0x56bc19 && (_0x475597 = _0x11d063);
  }) : _0x475597 = Math[_0x568eda(123)](-_0xc498a4[234]["z"], -_0xc498a4[454]["z"]), _0xc498a4[_0x568eda(_0xb822._0x524554)]((_0x1f5c64) => {
    const _0x4a566f = _0x568eda, { x: _0x249c7f, y: _0x1677bc, z: _0x23475b } = _0x1f5c64, _0x110674 = {};
    return _0x110674["x"] = -0.5 + _0x249c7f, _0x110674["y"] = 0.5 - _0x1677bc, _0x110674["z"] = -_0x23475b - _0x475597, _0x110674[_0x4a566f(_0x44d40d._0x4a43e1)] = _0x1f5c64[_0x4a566f(_0x44d40d._0x1b164b)], _0x110674;
  });
};
const scaleLandmark = (_0x25ea56, _0x2a9d09, _0x3fc9a8) => {
  const { x: _0x3ed4d0, y: _0x5255d1, z: _0xe317c8 } = _0x25ea56, _0x523ecf = { ..._0x25ea56 };
  return _0x523ecf["x"] = _0x3ed4d0 * _0x2a9d09, _0x523ecf["y"] = _0x5255d1 * _0x3fc9a8, _0x523ecf["z"] = _0xe317c8 * _0x2a9d09, _0x523ecf;
};
const makeGeometry = (_0x11175c) => {
  const _0x2222be = { _0xe88434: 121, _0x5cff0b: 122 }, _0x3ec173 = _0x5dc3, _0x53b437 = new BufferGeometry();
  for (let _0x114376 = 0; _0x114376 < 468; _0x114376++) {
    const { x: _0x4fa177, y: _0x32c072, z: _0x2ab8c9 } = _0x11175c[_0x114376];
  }
  const _0x2225c9 = /* @__PURE__ */ new Set([21, 71, 163, 139, 127, 34, 251, 301, 389, 368, 356, 264]), _0x3d9156 = {}, _0x1952db = [];
  _0x11175c[_0x3ec173(128)]((_0x244b38, _0x97c32e) => {
    const _0x583d4 = _0x3ec173;
    !_0x2225c9[_0x583d4(121)](_0x97c32e) && (_0x3d9156[_0x97c32e] = _0x1952db["length"] / 3, _0x1952db[_0x583d4(118)](_0x244b38["x"], _0x244b38["y"], _0x244b38["z"]));
  });
  const _0x1798af = [];
  for (let _0xca1e01 = 0; _0xca1e01 < FACE_MESH_INDEX_BUFFER[_0x3ec173(114)]; _0xca1e01 += 3) {
    const _0x397a39 = FACE_MESH_INDEX_BUFFER[_0xca1e01], _0x17711b = FACE_MESH_INDEX_BUFFER[_0xca1e01 + 1], _0x26a17a = FACE_MESH_INDEX_BUFFER[_0xca1e01 + 2];
    if (_0x2225c9[_0x3ec173(_0x2222be._0xe88434)](_0x397a39) || _0x2225c9["has"](_0x17711b) || _0x2225c9[_0x3ec173(121)](_0x26a17a)) continue;
    _0x1798af[_0x3ec173(118)](_0x3d9156[_0x397a39], _0x3d9156[_0x17711b], _0x3d9156[_0x26a17a]);
  }
  for (let _0x8d02fa = 0; _0x8d02fa < 468; _0x8d02fa++) {
    FACE_MESH_UV[_0x8d02fa][0], FACE_MESH_UV[_0x8d02fa][1];
  }
  return _0x53b437[_0x3ec173(_0x2222be._0x5cff0b)](_0x1798af), _0x53b437[_0x3ec173(113)](_0x3ec173(124), new Float32BufferAttribute(_0x1952db, 3)), _0x53b437["computeVertexNormals"](), _0x53b437;
};
export {
  makeGeometry as m,
  scaleLandmark as s,
  transformLandamks as t
};
